package com.bootdo.program.weixin.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.program.weixin.dao.WxAdvertDao;
import com.bootdo.program.weixin.domain.WxAdvertDO;



@Service
public class WxAdvertService {

	@Autowired
	private WxAdvertDao wxAdvertDao;
	
	public WxAdvertDO get(Integer id){
		return wxAdvertDao.get(id);
	}

	public WxAdvertDO getByAppid(String appid){
		return wxAdvertDao.getByAppid(appid);
	}
	
	public List<WxAdvertDO> list(Map<String, Object> map){
		return wxAdvertDao.list(map);
	}
	
	public int count(Map<String, Object> map){
		return wxAdvertDao.count(map);
	}
	
	public int save(WxAdvertDO wxAdvert){
		return wxAdvertDao.save(wxAdvert);
	}
	
	public int update(WxAdvertDO wxAdvert){
		return wxAdvertDao.update(wxAdvert);
	}
	
	public int remove(Integer id){
		return wxAdvertDao.remove(id);
	}
	
	public int batchRemove(Integer[] ids){
		return wxAdvertDao.batchRemove(ids);
	}
	
}
